<#import "../template.ftl" as t/>
<@t.html ; part>
    <#if part="head">

    </#if>
    <#if part="body">
        <div class="row">
            <div class="panel">
                <div class="panel-heading">
                    <h3 class="panel-title">企业详细用电信息</h3>
                </div>
                <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>套餐类型</th>
                                    <th>开始时间</th>
                                    <th>结束时间</th>
                                    <th>预估全年电量(万kW·h)</th>
                                    <th>电压等级(kV)</th>
                                    <th>变电器容量(kVA)</th>
                                    <th>套餐内容</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#if contractSettingList?? && contractSettingList?size &gt;0>
                                <#list contractSettingList as contractSetting>
                                    <#if contractSetting.contractInfo??>
                                    <tr>
                                        <td><#if contractSetting.contractInfo.planType??>
                                            <#if contractSetting.contractInfo.planType==1>1:9分成
                                            <#elseif contractSetting.contractInfo.planType==2>全返
                                            <#else>自定义模式
                                            </#if>
                                        </#if></td>
                                        <td><#if contractSetting.contractInfo.startAt??>${contractSetting.contractInfo.startAt?string("yyyy-MM-dd")}</#if></td>
                                        <td><#if contractSetting.contractInfo.endedAt??>${contractSetting.contractInfo.endedAt?string("yyyy-MM-dd")}</#if></td>
                                        <td>${contractSetting.contractInfo.elecConsumption!}</td>
                                        <td>${contractSetting.contractInfo.voltageStep!}</td>
                                        <td>${contractSetting.contractInfo.transformerCapacity!}</td>
                                        <td>
                                            <#if contractSetting.contractInfo.planType??>
                                            <#if contractSetting.contractInfo.planType==1>1:9分成
                                            <#elseif contractSetting.contractInfo.planType==2>全返
                                            <#else>
                                                    <#if contractSetting.cooperationType == 1>
                                                        ${(100-(contractSetting.longAgreementRate)!0)/10}:${((contractSetting.longAgreementRate)!0)/10}分成
                                                    <#elseif contractSetting.cooperationType == 2>
                                                        保底 ${(contractSetting.bottomPrice)!}
                                                    <#elseif contractSetting.cooperationType == 4>
                                                        ${(contractSetting.description)!}
                                                    </#if>
                                            </#if>
                                            </#if>
                                        </td>
                                        <td><#if contractSetting.contractInfo.status??>
                                            <#if contractSetting.contractInfo.status==1>未生效
                                            <#elseif contractSetting.contractInfo.status==2>已生效
                                            <#elseif contractSetting.contractInfo.status==3>已过期
                                            <#else>审核未通过
                                            </#if></#if>
                                        </td>
                                    </tr>
                                    </#if>
                                </#list>
                                <#else>
                                <tr>
                                    <td colspan="8">暂无订单</td>
                                </tr>
                                </#if>
                                </tbody>
                            </table>
                        </div>
                </div>
            </div>
        </div>
    </#if>
    <#if part="modal">
    </#if>

    <#if part="foot_script">

    <script type="text/javascript">

    </script>
    </#if>
</@t.html>